home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / unzip42.zip / ZIP.H < prev    next >
C/C++ Source or Header  |  1992-03-16  |  650b  |  22 lines

  1. /* This is a dummy zip.h to allow crypt.c from Zip to compile for unzip */
  2.  
  3. #define SKIP_TIME_H   /* temporary bugfix for VMS gcc compiler (may be */
  4. #include "unzip.h"    /*  necessary for other compilers--edit unzip.h  */
  5. #undef SKIP_TIME_H    /*  appropriately) */
  6.  
  7. #define local
  8. #ifdef __STDC__
  9. #  define PROTO
  10. #endif
  11. typedef unsigned short ush;
  12. typedef unsigned long ulg;
  13. #if defined(UTS)   /* may be necessary for other old compilers, too */
  14.    typedef char *voidp;
  15. #else /* !UTS */
  16.    typedef void *voidp;
  17. #endif /* ?UTS */
  18. typedef int extent;
  19.  
  20. extern ULONG crc_32_tab[];
  21. #define crc32(c, b) (crc_32_tab[((int)(c) ^ (b)) & 0xff] ^ ((c) >> 8))
  22.